﻿<UserControl x:Class="DIST.LR.ZHJG.Navigation.FloatNavigation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:c="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:local="clr-namespace:DIST.LR.ZHJG.Navigation">

    <UserControl.Resources>
        <Style x:Key="TextButtonStyle" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimation Duration="0:0:0.05" To="#FF3787BC" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl" d:IsOptimized="True"/>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Cursor)" Storyboard.TargetName="contentControl">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0.05">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Cursor>Hand</Cursor>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed"/>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <ContentControl x:Name="contentControl" d:LayoutOverrides="Width, Height">
                                <TextBlock Text="{TemplateBinding Content}" TextDecorations="Underline" Foreground="#FF25AAF4"/>
                            </ContentControl>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TextButtonStyle2" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ColorAnimation Duration="0:0:0.05" To="#FF3787BC" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentControl" d:IsOptimized="True"/>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Cursor)" Storyboard.TargetName="contentControl">
                                                <DiscreteObjectKeyFrame KeyTime="0:0:0.05">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Cursor>Hand</Cursor>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed"/>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <ContentControl x:Name="contentControl" Content="{TemplateBinding Content}" d:LayoutOverrides="Width, Height"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <LinearGradientBrush x:Name="split" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#00FFFFFF" Offset="0"/>
            <GradientStop Color="#22FFFFFF" Offset="1"/>
        </LinearGradientBrush>
        <ControlTemplate x:Key="HyperlinkTemplate" TargetType="HyperlinkButton">
            <Grid Background="{TemplateBinding Background}" Cursor="{TemplateBinding Cursor}">
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="CommonStates">
                        <VisualState x:Name="Normal"/>
                        <VisualState x:Name="MouseOver">
                            <Storyboard>
                                <ColorAnimation Duration="0" To="#FF25ABF4" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="Pressed"/>
                        <VisualState x:Name="Disabled"/>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="FocusStates">
                        <VisualState x:Name="Focused"/>
                        <VisualState x:Name="Unfocused"/>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
                <ContentControl x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="{TemplateBinding Foreground}"/>
            </Grid>
        </ControlTemplate>
        <Style x:Key="HyperlinkStyle" TargetType="HyperlinkButton">
            <Setter Property="Foreground" Value="#FF3D4350" />
            <Setter Property="FontFamily" Value="Arial" />
            <Setter Property="Template" Value="{StaticResource HyperlinkTemplate}" />
            <Setter Property="Cursor" Value="Hand" />
            <Setter Property="FontSize" Value="11" />
        </Style>
        <ControlTemplate x:Key="AllProductsTemplate" TargetType="telerik:RadDropDownButton">
            <Grid Width="60" Height="50" Background="Transparent">
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="CommonStates">
                        <VisualStateGroup.Transitions>
                            <VisualTransition GeneratedDuration="0:0:0.3">
                                <VisualTransition.GeneratedEasingFunction>
                                    <QuarticEase EasingMode="EaseOut"/>
                                </VisualTransition.GeneratedEasingFunction>
                            </VisualTransition>
                        </VisualStateGroup.Transitions>
                        <VisualState x:Name="Normal"/>
                        <VisualState x:Name="Disabled" />
                        <VisualState x:Name="MouseOver">
                            <Storyboard>
                                <!--<ColorAnimation Duration="0" To="#FF19A0EA" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="Content" d:IsOptimized="True"/>-->
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="Pressed">
                            <Storyboard>
                                <!--<ColorAnimation Duration="0" To="#FF19A0EA" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="Content" d:IsOptimized="True"/>-->
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="IsOpenState">
                        <VisualState x:Name="Closed"/>
                        <VisualState x:Name="Opened">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>-->
                                <ColorAnimation Duration="0" To="#FF19A0EA" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="Content" d:IsOptimized="True"/>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="DropDownButtonPosition">
                        <VisualState x:Name="DropDownButtonAtLeft">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Row)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                </ObjectAnimationUsingKeyFrames>-->
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="DropDownButtonAtTop">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Row)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
                                </ObjectAnimationUsingKeyFrames>-->
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="DropDownButtonAtRight">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="2"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Row)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                </ObjectAnimationUsingKeyFrames>-->
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="DropDownButtonAtBottom">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Column)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Grid.Row)" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0" Value="2"/>
                                </ObjectAnimationUsingKeyFrames>-->
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="PopupPlacementState">
                        <VisualState x:Name="PlacementBottom"/>
                        <VisualState x:Name="PlacementTop">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RenderTransform" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <TransformGroup>
                                                <RotateTransform Angle="180"/>
                                            </TransformGroup>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>-->
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="PlacementLeft">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RenderTransform" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <TransformGroup>
                                                <RotateTransform Angle="-90"/>
                                            </TransformGroup>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>-->
                            </Storyboard>
                        </VisualState>
                        <VisualState x:Name="PlacementRight">
                            <Storyboard>
                                <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="RenderTransform" Storyboard.TargetName="DropDownIndicator">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <TransformGroup>
                                                <RotateTransform Angle="-90"/>
                                            </TransformGroup>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>-->
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="FocusStates">
                        <VisualState x:Name="Unfocused"/>
                        <VisualState x:Name="Focused"/>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Border x:Name="border" BorderBrush="#FFAAB9C0" BorderThickness="1"  Grid.ColumnSpan="3" Grid.RowSpan="3" Visibility="Collapsed" Margin="-5,0">
                        <Border.Effect>
                            <DropShadowEffect BlurRadius="6" ShadowDepth="1" Opacity="0.4"/>
                        </Border.Effect>
                        <Border.Background>
                            <ImageBrush ImageSource="Images/popupbg.jpg" Stretch="Fill"></ImageBrush>
                        </Border.Background>
                    </Border>
                    <ContentControl x:Name="Content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Grid.Row="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" FontSize="24" Foreground="White" FontFamily="FZHei-B01S"/>
                </Grid>
                <telerik:Popup x:Name="DropDownPopup" FontWeight="Normal" >
                    <!--<i:Interaction.Triggers>
                        <ei:PropertyChangedTrigger Binding="{Binding IsOpen, ElementName=DropDownPopup}">
                            <i:Interaction.Behaviors>
                                <ei:ConditionBehavior>
                                    <ei:ConditionalExpression>
                                        <ei:ComparisonCondition LeftOperand="{Binding IsOpen, ElementName=DropDownPopup}" RightOperand="False"/>
                                    </ei:ConditionalExpression>
                                </ei:ConditionBehavior>
                            </i:Interaction.Behaviors>
                            <ei:ChangePropertyAction TargetObject="{Binding ElementName=PART_EditableTextBox}" PropertyName="Text" Value=""/>
                        </ei:PropertyChangedTrigger>
                    </i:Interaction.Triggers>-->
                    <Grid x:Name="PopupRoot" Margin="0 -10 0 0">
                        <Border BorderBrush="#FFAAB9C0" BorderThickness="1" Padding="5" >
                            <Border.Effect>
                                <DropShadowEffect BlurRadius="6" Opacity="0.4" ShadowDepth="1"/>
                            </Border.Effect>
                            <Border.Background>
                                <ImageBrush ImageSource="Images/popupbg.jpg" Stretch="Fill"></ImageBrush>
                            </Border.Background>
                            <ListBox x:Name="_listbox" BorderThickness="0" Background="Transparent"  ItemsSource="{Binding SubCatagorys}"
                                     telerik:RadDragAndDropManager.AllowDrop="True" >
                                <ListBox.ItemTemplate>
                                    <DataTemplate>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100"/>
                                                <ColumnDefinition Width="*"/>
                                            </Grid.ColumnDefinitions>
                                            <Button Style="{StaticResource TextButtonStyle}" Content="{Binding Name}" Tag="{Binding Index}" HorizontalAlignment="Right" Margin="0 0 15 0" Grid.Column="0" VerticalAlignment="Top"  Foreground="#FF25AAF4" FontSize="16" FontFamily="Arial" Click="Button_Click"/>
                                            <!--<TextBlock  HorizontalAlignment="Right" Margin="0 0 15 0" Grid.Column="0" Text="{Binding Name}" TextDecorations="Underline" VerticalAlignment="Top"  Foreground="#FF25AAF4" FontSize="16" FontFamily="Arial" />-->
                                            <ListBox Grid.Column="1" x:Name="_listbox2" ItemsSource="{Binding SubIndexInfos}" Background="Transparent"  telerik:RadDragAndDropManager.AllowDrop="True" BorderThickness="0" BorderBrush="Transparent">
                                                <ListBox.ItemTemplate>
                                                    <DataTemplate>
                                                        <Button Style="{StaticResource TextButtonStyle2}" Content="{Binding Name}" Tag="{Binding Index}" VerticalAlignment="Top"  Foreground="Black" FontSize="14" FontFamily="Arial" Click="Button_Click"/>
                                                        <!--<TextBlock Text="{Binding Name}" VerticalAlignment="Top"  Foreground="Black" FontSize="14" FontFamily="Arial"/>-->
                                                    </DataTemplate>
                                                </ListBox.ItemTemplate>
                                                <ListBox.ItemsPanel>
                                                    <ItemsPanelTemplate>
                                                        <telerik:RadUniformGrid HorizontalAlignment="Left" VerticalAlignment="Center" />
                                                    </ItemsPanelTemplate>
                                                </ListBox.ItemsPanel>
                                            </ListBox>
                                            <Border BorderThickness="0 0 0 1" VerticalAlignment="Bottom" Height="1" BorderBrush="#55CCCCCC" Grid.Column="1"></Border>
                                        </Grid>
                                    </DataTemplate>
                                </ListBox.ItemTemplate>
                            </ListBox>
                        </Border>
                        <!--<Path Data="M7.0710683,0 L14.142137,7.0710683 L0,7.0710683 z" Fill="#FFF4F4F4"  HorizontalAlignment="Left" Height="7.071" Margin="25,-6,0,0" Stretch="Fill" UseLayoutRounding="False" VerticalAlignment="Top" Width="14.142">
                            <Path.Effect>
                                <DropShadowEffect Direction="90" Opacity="0.4" ShadowDepth="1" BlurRadius="0"/>
                            </Path.Effect>
                        </Path>-->
                    </Grid>
                </telerik:Popup>
            </Grid>
        </ControlTemplate>
        <Style x:Key="DefaultPage" TargetType="telerik:RadButton">
            <Setter Property="Foreground" Value="#FF3D4350" />
            <Setter Property="FontFamily" Value="Arial Black" />
            <Setter Property="FontSize" Value="20" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                        <GradientStop Color="#FFDCDCDC" Offset="0.50"/>
                        <GradientStop Color="#FFADADAD" Offset="0.50"/>
                        <GradientStop Color="#FFD4D4D4" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Cursor" Value="Hand"/>
        </Style>
        <Style x:Key="AllProductsStyle" TargetType="telerik:RadDropDownButton">
            <Setter Property="Foreground" Value="#FF3D4350" />
            <Setter Property="FontFamily" Value="Arial Black" />
            <Setter Property="FontSize" Value="20" />
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                        <GradientStop Color="#FFDCDCDC" Offset="0.50"/>
                        <GradientStop Color="#FFADADAD" Offset="0.50"/>
                        <GradientStop Color="#FFD4D4D4" Offset="1"/>
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Template" Value="{StaticResource AllProductsTemplate}" />
            <Setter Property="Cursor" Value="Hand"/>
            <Setter Property="DropDownPlacement" Value="Bottom" />
        </Style>
        <SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF848484"/>
        <LinearGradientBrush x:Key="ControlBackground_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFFFF" Offset="0"/>
            <GradientStop Color="#FFDCDCDC" Offset="0.50"/>
            <GradientStop Color="#FFADADAD" Offset="0.50"/>
            <GradientStop Color="#FFD4D4D4" Offset="1"/>
        </LinearGradientBrush>

        <Style x:Key="RadButtonStyle1" TargetType="telerik:RadButton">
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Foreground" Value="White" />
            <Setter Property="FontFamily" Value="FZHei-B01S" />
            <Setter Property="FontSize" Value="24" />
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Padding" Value="3"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:RadButton">
                        <Grid Width="60">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <!--<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_MouseOver}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Background" Storyboard.TargetName="InnerBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_MouseOver}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_MouseOver}"/>
        									</ObjectAnimationUsingKeyFrames>-->
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <!--<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CommonStatesWrapper">
        										<DiscreteDoubleKeyFrame KeyTime="00:00:00.050" Value="0"/>
        									</DoubleAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Pressed}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Background" Storyboard.TargetName="InnerBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Pressed}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Pressed}"/>
        									</ObjectAnimationUsingKeyFrames>-->
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <!--<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlOuterBorder_Disabled}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="InnerBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlInnerBorder_Disabled}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Background" Storyboard.TargetName="InnerBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{StaticResource ControlBackground_Disabled}"/>
        									</ObjectAnimationUsingKeyFrames>
        									<DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Content"/>-->
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="BackbroundVisibility">
                                    <VisualState x:Name="BackgroundHiden">
                                        <Storyboard>
                                            <!--<ObjectAnimationUsingKeyFrames Duration="0:0:0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OuterBorder">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="0"/>
        									</ObjectAnimationUsingKeyFrames>-->
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="BackgroundVisible"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStatesGroup">
                                    <VisualState x:Name="Unfocused">
                                        <Storyboard>
                                            <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">
        										<DiscreteObjectKeyFrame KeyTime="00:00:00.150">
        											<DiscreteObjectKeyFrame.Value>
        												<Visibility>Collapsed</Visibility>
        											</DiscreteObjectKeyFrame.Value>
        										</DiscreteObjectKeyFrame>
        									</ObjectAnimationUsingKeyFrames>
        									<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual">
        										<LinearDoubleKeyFrame KeyTime="00:00:00.150" Value="0"/>
        									</DoubleAnimationUsingKeyFrames>-->
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">
        										<DiscreteObjectKeyFrame KeyTime="0:0:0">
        											<DiscreteObjectKeyFrame.Value>
        												<Visibility>Visible</Visibility>
        											</DiscreteObjectKeyFrame.Value>
        										</DiscreteObjectKeyFrame>
        									</ObjectAnimationUsingKeyFrames>
        									<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisual">
        										<LinearDoubleKeyFrame KeyTime="00:00:00.115" Value="1"/>
        									</DoubleAnimationUsingKeyFrames>-->
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <!--<Border x:Name="OuterBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}">
        						<Border x:Name="InnerBorder" BorderBrush="{StaticResource ControlInnerBorder_Normal}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="{TemplateBinding InnerCornerRadius}"/>
        					</Border>-->
                            <ContentPresenter x:Name="Content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            <!--<Border x:Name="CommonStatesWrapper">
        						<Border x:Name="FocusVisual" BorderBrush="{StaticResource ControlOuterBorder_Focused}" BorderThickness="1" Background="{StaticResource ControlBackground_Focused}" CornerRadius="{TemplateBinding CornerRadius}" Opacity="0" Visibility="Collapsed">
        							<Border x:Name="FocusInnerVisual" BorderBrush="{StaticResource ControlInnerBorder_Focused}" BorderThickness="1" CornerRadius="{TemplateBinding InnerCornerRadius}"/>
        						</Border>
        					</Border>-->
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid Height="50" VerticalAlignment="Top" >
            <Border x:Name="controls_header">
                <Grid HorizontalAlignment="Right" Margin="0,0,20,0" VerticalAlignment="Center" >
                    <StackPanel Orientation="Horizontal">
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                        <telerik:RadButton x:Name="mainpage" Style="{StaticResource RadButtonStyle1}" Click="mainpage_Click">
                            <telerik:RadButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="首页"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadButton.ContentTemplate>
                        </telerik:RadButton>
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                        <telerik:RadDropDownButton x:Name="glpage" HorizontalAlignment="Stretch"    Style="{StaticResource AllProductsStyle}" 
                                               DropDownButtonPosition="Bottom" DropDownContent=" "  DataContext="{Binding NavigationDataSource1}" Click="glpage_Click">
                            <telerik:RadDropDownButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="概览"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadDropDownButton.ContentTemplate>
                        </telerik:RadDropDownButton>
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                        <telerik:RadDropDownButton x:Name="pipage" HorizontalAlignment="Stretch"   Style="{StaticResource AllProductsStyle}" 
                                                DropDownButtonPosition="Bottom" DropDownContent=" " DataContext="{Binding NavigationDataSource2}" Click="pipage_Click">
                            <telerik:RadDropDownButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="批"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadDropDownButton.ContentTemplate>
                        </telerik:RadDropDownButton>
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                        <!--<telerik:RadDropDownButton x:Name="gongpage" HorizontalAlignment="Stretch"   Style="{StaticResource AllProductsStyle}" 
                                                DropDownButtonPosition="Bottom" DropDownContent=" " DataContext="{Binding NavigationDataSource3}" Click="gongpage_Click">
                            <telerik:RadDropDownButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="供"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadDropDownButton.ContentTemplate>
                        </telerik:RadDropDownButton>-->
                        <telerik:RadButton x:Name="gongpage" Style="{StaticResource RadButtonStyle1}" Click="gongpage_Click_1">
                            <telerik:RadButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="供"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadButton.ContentTemplate>
                        </telerik:RadButton>
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                        <telerik:RadDropDownButton x:Name="yongpage" HorizontalAlignment="Stretch"   Style="{StaticResource AllProductsStyle}" 
                                                DropDownButtonPosition="Bottom" DropDownContent=" " DataContext="{Binding NavigationDataSource4}" Click="yongpage_Click">
                            <telerik:RadDropDownButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="用"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadDropDownButton.ContentTemplate>
                        </telerik:RadDropDownButton>
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                        <telerik:RadDropDownButton x:Name="bupage" HorizontalAlignment="Stretch"   Style="{StaticResource AllProductsStyle}" 
                                                DropDownButtonPosition="Bottom" DropDownContent=" " DataContext="{Binding NavigationDataSource5}" Click="bupage_Click">
                            <telerik:RadDropDownButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="补"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadDropDownButton.ContentTemplate>
                        </telerik:RadDropDownButton>
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                        <telerik:RadDropDownButton x:Name="chapage" HorizontalAlignment="Stretch"   Style="{StaticResource AllProductsStyle}" 
                                                DropDownButtonPosition="Bottom" DropDownContent=" " DataContext="{Binding NavigationDataSource6}" Click="chapage_Click">
                            <telerik:RadDropDownButton.ContentTemplate>
                                <DataTemplate>
                                    <Grid>
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="查"/>
                                        </StackPanel>
                                    </Grid>
                                </DataTemplate>
                            </telerik:RadDropDownButton.ContentTemplate>
                        </telerik:RadDropDownButton>
                        <Rectangle Height="50" Width="2" Fill="{StaticResource split}">

                        </Rectangle>
                    </StackPanel>

                </Grid>
            </Border>
        </Grid>
    </Grid>
</UserControl>
